<html>
<head><meta charset="utf-8"><title>state of fuzzing · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/state.20of.20fuzzing.html">state of fuzzing</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="172120965"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/state%20of%20fuzzing/near/172120965" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/state.20of.20fuzzing.html#172120965">(Jul 31 2019 at 12:08)</a>:</h4>
<p><span class="user-mention" data-user-id="117482">@Pascal</span> as you've implemented fuzzing for rust-analyzer, could you share your thoughts on the current state of fuzzing in Rust. My understanding is that there are:</p>
<ul>
<li><a href="http://afl.rs" target="_blank" title="http://afl.rs">afl.rs</a></li>
<li>libfuzzer-sys</li>
<li>honggfuzz-rs</li>
</ul>
<p>Which is preferable for the new project?</p>



<a name="172121202"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/state%20of%20fuzzing/near/172121202" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pascal <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/state.20of.20fuzzing.html#172121202">(Jul 31 2019 at 12:12)</a>:</h4>
<p>hm, so right now using cargo fuzz is easiest to use and based on libfuzzer. Hongfuzz is also quite approachable but I had some issues in the past. Never used afl. There is an effort to unify all the backends to use the same macro/fuzz code, but I haven't seen much work there in a while</p>



<a name="172121231"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/state%20of%20fuzzing/near/172121231" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pascal <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/state.20of.20fuzzing.html#172121231">(Jul 31 2019 at 12:12)</a>:</h4>
<p>Ideally, using cargo fuzz right now should allow you to upgrade to a more generic version quite easily later</p>



<a name="172121244"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/state%20of%20fuzzing/near/172121244" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/state.20of.20fuzzing.html#172121244">(Jul 31 2019 at 12:13)</a>:</h4>
<p>Thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>